package com.train.chatspring.model;

import lombok.Data;

// 新增ChatMessage模型类
@Data
public class ChatMessage {
    private String senderId;
    private String receiverId;
    private String text;
    private String filePath;

    // 添加getter和setter方法
    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}